package com.project.server.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@TableName("sys_user")
public class SysUser {

    @TableId(type = IdType.AUTO)
    private Long id;
    private String username;
    private String password;
    private String realName;
    private String phone;
    private String avatar;
    private Integer roleId;  // 1-管理员 2-医生 3-患者
    private Integer status;  // 0离线 1在线
    private Integer gender;  // 1 男 2 女
    private Integer age;
    private Integer consultationCount;
    private Integer isAuth;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;


    private String specialty;

    private Boolean online; // 医生在线状态

}
